clear
clc
y=-10:0.1:10;
 x=2.*y.^2;
 subplot(1,2,1);plot(x,y);title('x=2y^2');
 axis square
 xlabel('x轴');
 ylabel('y轴');
 [r,t]=meshgrid(0:0.1:10,0:0.02:2*pi);
y=r.*cos(t);
z=r.*sin(t);
x=2.*(y.^2+z.^2);
subplot(1,2,2);mesh(x,y,z);title('x=2(y^2+z^2)');
axis square
xlabel('x轴');
ylabel('y轴');
zlabel('z轴');